<template>
  <el-button type="primary" plain @click="oauth">抖店授权</el-button>
</template>

<script>
  export default {
    data() {
      return {}
    },
    methods: {
      async oauth() {
        await this.$http
          .get(`/douyin/oauth/getAccessToken`)
          .then((response) => {
            var result = response.data;
            if (result.code === 200) {
              this.$message({
                message: '授权成功',
                type: 'success'
              });
            }
          })
      },
    }
  }
</script>

<style>

</style>
